<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE xsl:stylesheet  [
	<!ENTITY nbsp   "&#160;">
	<!ENTITY copy   "&#169;">
	<!ENTITY reg    "&#174;">
	<!ENTITY trade  "&#8482;">
	<!ENTITY mdash  "&#8212;">
	<!ENTITY ldquo  "&#8220;">
	<!ENTITY rdquo  "&#8221;"> 
	<!ENTITY pound  "&#163;">
	<!ENTITY yen    "&#165;">
	<!ENTITY euro   "&#8364;">
]>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:page="urn:page">
  <xsl:output method="html" encoding="utf-8"/>
  <xsl:param name="templatename"/>
  <xsl:template match="/">
  <!--选定的代码-->
  <xsl:variable name="pcode"><xsl:value-of select="page:xRequest('selectcode',page:xRequest('objValue'))"/></xsl:variable>
    <ul class="RadioSelect" id="citylist">
      <li class="selected">选择的选项：<br/>
        <div class="text" id="selectedText">
        <xsl:value-of select="page:xRequest('selecttext',page:xRequest('objText'))"/></div>
      </li>
      <li class="head">所有选项：</li>
      <!--未选定代码时，不显示上一级目录-->
      <xsl:if test="count(rows/row/F_PPCode)!=0">
        <li class="goback"><a>
          <xsl:attribute name="href">javascript:PG.loadTheContent($('citylist').parentNode,'<xsl:value-of select="$templatename"/>','isReturn=1&amp;pcode=<xsl:value-of select="rows/row/F_PPCode"/>&amp;ptext=<xsl:value-of select="page:xRequest('selecttext')"/>&amp;selecttext=<xsl:value-of select="rows/row/F_PName"/>&amp;selectcode=<xsl:value-of select="page:xRequest('selectcode')"/>')</xsl:attribute>
          返回上级</a></li>
      </xsl:if>
      <xsl:for-each select="rows/row">
        <li>
          <input type="radio" value="{FCode}" name="radioslt"><xsl:if test="FCode=page:xRequest('selectcode')"><xsl:attribute name="checked">true</xsl:attribute></xsl:if><xsl:attribute name="onclick">$('selectedText').innerHTML='<xsl:value-of select="concat(F_PName,FName)"/>';$('selectedValue').value='<xsl:value-of select="FCode"/>';</xsl:attribute>
          </input>
          <a>
          <xsl:if test="FCount!=0">
            <xsl:attribute name="href">javascript:PG.loadTheContent($('citylist').parentNode,'<xsl:value-of select="$templatename"/>','isReturn=1&amp;pcode=<xsl:value-of select="FCode"/>&amp;ptext=<xsl:value-of select="concat(F_PName,FName)"/>&amp;selecttext=<xsl:value-of select="concat(F_PName,FName)"/>&amp;selectcode=<xsl:value-of select="FCode"/>')</xsl:attribute>
          </xsl:if>
          <xsl:value-of select="FName"/></a> </li>
      </xsl:for-each>
    </ul>
    <input id="selectedValue" type="hidden" value="{page:xRequest('objValue')}" />
  </xsl:template>
</xsl:stylesheet>
